Public Class frmTheoDoiSVVayVon

    Private Sub frmTheoDoiSVVayVon_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the 'CSDLSVDataSet.tblGioiTinh' table. You can move, or remove it, as needed.
        Me.TblGioiTinhTableAdapter.Fill(Me.CSDLSVDataSet.tblGioiTinh)
        'TODO: This line of code loads data into the 'CSDLSVDataSet.tblVayVon' table. You can move, or remove it, as needed.
        Me.TblVayVonTableAdapter.Fill(Me.CSDLSVDataSet.tblVayVon)
        'TODO: This line of code loads data into the 'CSDLSVDataSet.tblVayVon' table. You can move, or remove it, as needed.
        Me.TblVayVonTableAdapter.Fill(Me.CSDLSVDataSet.tblVayVon)
        'TODO: This line of code loads data into the 'CSDLSVDataSet.tblSinhVien' table. You can move, or remove it, as needed.
        Me.TblSinhVienTableAdapter.Fill(Me.CSDLSVDataSet.tblSinhVien)

    End Sub

    Private Sub TblVayVonBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TblVayVonBindingNavigatorSaveItem.Click
        Me.Validate()
        Me.TblVayVonBindingSource.EndEdit()
        Me.TblVayVonTableAdapter.Update(Me.CSDLSVDataSet.tblVayVon)

    End Sub

    Private Sub ToolStripButtonTimSV_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButtonTimSV.Click
        Try
            Me.TblSinhVienTableAdapter.FillBy(Me.CSDLSVDataSet.tblSinhVien, ToolStripTextBoxTimKiem.Text, ToolStripTextBoxTimKiem.Text, ToolStripTextBoxTimKiem.Text, ToolStripTextBoxTimKiem.Text)
        Catch ex As System.Exception
            System.Windows.Forms.MessageBox.Show(ex.Message)
        End Try
    End Sub
End Class